Box 1: Loop unrolling and inlining
-
-
-
In the classical case of Box 1 figure a the compiler does not know the amount of parallel hardware.
-
General speaking this is no issue for a compiler in a classical computer, because the hardware can handle jump instructions.
-
The ability of the hardware to detect and schedule parallel operations is crucial.
-
No.
-
In the QC case of Box 1 figure a parallelism exists up to the number of qubits in the machine.
-
To say it simple: if each X(x[n],y[n]) operation requires one Qubit, if there are more simliar operations than Qubits and if all operations have to performed simultaneous, than the QC is too small (and more hardware is required).
-
Loop 2 is also removed as described in Box 1 figure a, but a function is called that prevents the detction of parallel operations.
-
Reflection 2 - Comparing programming DC versus QC
-
-
|